import 'package:flutter/material.dart';

/// 间隔组件
class Space extends StatelessWidget {
  final double width;
  final double height;

  Space({this.width = 10.0, this.height = 10.0, Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return new Container(width: width, height: height);
  }
}

/// 字符串不为空
bool strNoEmpty(String value) {
  if (value == null) return false;

  return value.trim().isNotEmpty;
}